class classdict:
    def __init__(self,dic):
        self.dic = dic
    def del_dictkey(self,index):
        self.index = index
        del self.dic[index]
        return self.dic
    def judge_dictkey(self,item):
        self.item = item
        if item in self.dic:
            return self.dic[item]
        else:
            return "不存在"
    def get_dictkey(self):
        return list(self.dic.values())

a = classdict({'水果':'香蕉','学历':'本科','职业':'棋手'})
print(a.del_dictkey('水果'),'\n',a.judge_dictkey('学历'),'\n',a.judge_dictkey(2),'\n',a.get_dictkey())